﻿using Clothes.Comment;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Clothes.Model;

namespace Clothes.IBLL
{
    public interface CLUserIBLL
    {
        /// <summary>
        /// 通过用户名登录
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        /// <returns>返回用户信息</returns>
        OperResult<CLUser> LoginByUserName(string userName, string password);

        /// <summary>
        /// 通过手机号登录
        /// </summary>
        /// <param name="mobileNumber"></param>
        /// <param name="password"></param>
        /// <returns>返回用户信息</returns>
        OperResult<CLUser> LoginByMobileNumber(string mobileNumber, string password);

        CLUser Select(int id);

        bool SelectEdit(int id, string xing,string di, string shou);

        bool InsertBLL(CLUser cL);
    }
}
